/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-04-02
 * Time: 9:15
 */
public class Test {
    public static void main(String[] args) {
        Integer a = 127;
        Integer b = 127;
        System.out.println(a == b);
        //在-128~127之间的数，返回一个数组里的数
        Integer c = 128;
        Integer d = 128;
        System.out.println(c == d);
        //Integer 不在-128~127之间的数，会重新new一个对象返回
    }
    public static void main1(String[] args) {
        int a = 10;
        Integer i = a;//自动装箱
        Integer j = Integer.valueOf(a);
        Integer ii = new Integer(a);//显示装箱
        int b = i.intValue();//显示拆箱
        float c = i.floatValue();
        int d = i;//自动拆箱
    }
}
